﻿using System;
using System.Collections.Generic;

namespace Lingo
{
    static class Lingo
    {
        public static List<Round> Rounds { get; set; }
        public static Player Player { get; set; }

        public static Round CurrentRound
        {
            get
            {
                if (Rounds.Count > 0)
                    return Rounds[Rounds.Count - 1];

                throw new Exception("Rounds wasn't initialized properly!");
            }
        }

        public static void NewRound()
        {
            if (Rounds == null)
            {
                Rounds = new List<Round>();
            }
            Rounds.Add(new Round() { Number = Rounds.Count + 1});
        }
    }
}
